package com.um.psystem.mapper.platform.faultManageMapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Auther: AiLen2E
 * @Date: 2021/12/21 10:50
 * @version: 1.0
 */
@Mapper
public interface IFaultItemMapper {

    Integer addItem(Map map);

    Integer removeItem(@Param("id") Integer id);

    Integer removeItemByDeviceId(@Param("deviceid")Integer deviceid);

    Integer changeItem(Map map);

    List<Map<String,Object>> getItemList(Map map);

    Integer getItemListCount(Map map);

    List<Map<String,Object>> getLineTypePieData(Map map);

    List<Map<String,Object>> getWorkShopPieData(Map map);

    List<Map<String,Object>> getUnitsPieData(Map map);

    List<Map<String,Object>> getFaultTypePieData(Map map);

}
